﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace SQLTouch.Service.DataContracts
{
    [DataContract]
    public class ColumnData
    {
        [DataMember]
        private readonly string name;
        [DataMember]
        private readonly ColumnTypeData type;

        private ColumnData()
        {
        }

        public ColumnData(string name, ColumnTypeData type)
        {
            this.name = name;
            this.type = type;
        }

        public string Name
        {
            get { return name; }
        }

        public ColumnTypeData Type
        {
            get { return type; }
        }
    }
}
